package com.jiazhong.cloud.governance.consumer.controller;

import com.jiazhong.cloud.governance.consumer.service.ConsumerService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consumer")
public class ConsumerController {
    @Resource
    private ConsumerService consumerService;

    @GetMapping
    public String hello() {
        return consumerService.hello();
    }

    @GetMapping("/around")
    public String helloAround() {
        return consumerService.helloAround();
    }

    @GetMapping("/random")
    public String helloRandom() {
        return consumerService.helloRandom();
    }
}
